<{include file="tpl/filter.tpl"}>
<div>
    <a class="pull-right" style="background: #008678; color: #fff; padding: 2px 8px; margin-bottom: 12px; border-radius: 5px;" href="<{PubFunc::buildUrl('/auth/?r=user/add')}>">
        <i class="fa fa-plus"></i> 添加
    </a>
</div>	
<{include file="tpl/grid.tpl"}>	
<script>
	$(document).on('click','a[name="set_channel"]',function(){
		    var g = $('input[name="g"]').val();
        	var id = $(this).attr('data-id');
        	if(id == ""){
            	layer.msg('数据错误！', {icon: 2,time: 3000});
            	return false;
           }
            
            var url = '/auth/?r=user/channel&id='+id+'&g='+g;
    		layer.open({
    			skin: ''
    			,type: 2
    			,area: ['750px', '600px']
    			,title:'游戏渠道权限分配'
    			,content: url
    		});        	
    });
</script>
